package model;


public class Eating implements PhilosopherState {
	private static Eating instance;
	public synchronized static Eating getInstance() {
		if(instance == null){
			instance = new  Eating();
		}
		return instance;
	}
	
	
	@Override
	public void accept(final PhilosopherStateVisitor visitor) {
		visitor.visit(this);
	}

	@Override
	public long getMaxWaitTime() {
		return PTOMonitor.getInstance().getMaxEatingTime();
	}

	private Eating(){}
	

	@Override
	public String toString(){
		return "eating";
	}
}
